package com.tuniondata.netty.bean;

import com.tuniondata.netty.common.Pack;

/**
 * 上传文件（4001）
 * 请求
 *
 * @author yuxinchao
 */
@ApiBinaryDTO(mtp = "4001")
public class UploadFileRequestDTO implements ApiBinaryBean {
    private String issuerCode; // 机构代码
    private String issuerName; // 机构简称

    public String getIssuerCode() {
        return issuerCode;
    }

    public void setIssuerCode(String issuerCode) {
        this.issuerCode = issuerCode;
    }

    public String getIssuerName() {
        return issuerName;
    }

    public void setIssuerName(String issuerName) {
        this.issuerName = issuerName;
    }

    @Override
    public byte[] pack() throws Exception {
        Pack pack = Pack.alloc();
        pack.add(issuerName, 40)
            .add(issuerCode, 11);
        return pack.pack();
    }

    @Override
    public void unpack(byte[] data) throws Exception {
    }
}
